/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright 2009 - 2012 Luca Mingardi.
 *
 * This file is part of jeeObserver.
 *
 * JeeObserver is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * JeeObserver is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */
package jeeobserver.server.settings;

import java.io.Serializable;

/**
 * The Class SmtpConnection.
 *
 * @author Luca Mingardi
 * @version 4.0
 */
public final class SmtpConnection implements Serializable {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 40L;

	/** The Constant EMAIL_CONTENT_TYPE_TEXT. */
	public static final String EMAIL_CONTENT_TYPE_TEXT = "TEXT";

	/** The Constant EMAIL_CONTENT_TYPE_HTML. */
	public static final String EMAIL_CONTENT_TYPE_HTML = "HTML";

	/** The port. */
	private int port = 25;

	/** The security enable. */
	private boolean securityEnable = false;

	/** The from name. */
	private String fromName = "";

	/** The from address. */
	private String fromAddress = "";

	/** The host name. */
	private String hostName = "";

	/** The username. */
	private String username = "";

	/** The password. */
	private String password = "";

	/** The email content type. */
	private String emailContentType = SmtpConnection.EMAIL_CONTENT_TYPE_TEXT;

	/**
	 * Gets the port.
	 *
	 * @return the port
	 */
	public int getPort() {
		return this.port;
	}

	/**
	 * Checks if is security enable.
	 *
	 * @return true, if is security enable
	 */
	public boolean isSecurityEnable() {
		return this.securityEnable;
	}

	/**
	 * Gets the from name.
	 *
	 * @return the from name
	 */
	public String getFromName() {
		return this.fromName;
	}

	/**
	 * Gets the from address.
	 *
	 * @return the from address
	 */
	public String getFromAddress() {
		return this.fromAddress;
	}

	/**
	 * Gets the host name.
	 *
	 * @return the host name
	 */
	public String getHostName() {
		return this.hostName;
	}

	/**
	 * Gets the username.
	 *
	 * @return the username
	 */
	public String getUsername() {
		return this.username;
	}

	/**
	 * Gets the password.
	 *
	 * @return the password
	 */
	public String getPassword() {
		return this.password;
	}

	/**
	 * Gets the email content type.
	 *
	 * @return the email content type
	 */
	public String getEmailContentType() {
		return this.emailContentType;
	}

	/**
	 * Sets the port.
	 *
	 * @param port the new port
	 */
	public void setPort(int port) {
		this.port = port;
	}

	/**
	 * Sets the security enable.
	 *
	 * @param securityEnable the new security enable
	 */
	public void setSecurityEnable(boolean securityEnable) {
		this.securityEnable = securityEnable;
	}

	/**
	 * Sets the from name.
	 *
	 * @param fromName the new from name
	 */
	public void setFromName(String fromName) {
		this.fromName = fromName;
	}

	/**
	 * Sets the from address.
	 *
	 * @param fromAddress the new from address
	 */
	public void setFromAddress(String fromAddress) {
		this.fromAddress = fromAddress;
	}

	/**
	 * Sets the host name.
	 *
	 * @param hostName the new host name
	 */
	public void setHostName(String hostName) {
		this.hostName = hostName;
	}

	/**
	 * Sets the username.
	 *
	 * @param username the new username
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * Sets the password.
	 *
	 * @param password the new password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * Sets the email content type.
	 *
	 * @param emailContentType the new email content type
	 */
	public void setEmailContentType(String emailContentType) {
		this.emailContentType = emailContentType;
	}
}
